local hx__sicang = fk.CreateSkill{
  name = "hx__sicang",}

hx__sicang:addEffect("viewas", {
  prompt = "#hx__sicang",
  pattern = "slash",
  handly_pile = true,
  card_filter = function(self, player, to_select, selected)
    return #selected < 2 and table.contains(player:getHandlyIds(), to_select)
  end,
  view_as = function(self, player, cards)
    if #cards ~= 2 then return nil end
    local c = Fk:cloneCard("slash")
    c.skillName = "spear"
    c:addSubcards(cards)
    return c
  end,
})

hx__sicang:addEffect("atkrange", {
  correct_func = function (self, from, to)
    if from:hasSkill(hx__sicang.name) then
      return 2
    end
    return 0
  end,
})


return hx__sicang